package org.zxp.javacheck.InnerClass.partinnerclass;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-21 12:40
 **/
public class PartInnerClass {
    Inner inner = new Inner();

    public void doing(){
        new Inner().show();
        inner.show();
        getInnerInstance().show();
    }

    public Inner getInnerInstance(){
        return new Inner();
    }


}
class Inner{
    public void show(){
        System.out.println("我是局部内部类，路径是："+this.getClass().getName()+" hashcode："+this.hashCode());
    }
}
